package com.chery.foxlogrecord.extension.mybatis;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * @author qiangt
 */
@Slf4j
@Data
public class BasePageDto implements Serializable {
    @ApiModelProperty(name = "orderField", value = "排序列，entity属性", dataType = "String", position = 97)
    private String orderField;

    @ApiModelProperty(name = "pageCurrent", value = "当前页数", dataType = "Integer", example = "1", position = 98)
    private Long pageCurrent = 1L;

    @ApiModelProperty(name = "pageSize", value = "每页几条", dataType = "Integer", example = "20", position = 99)
    private Long pageSize = 10L;

    @ApiModelProperty(name = "isAsc", value = "是否升序", dataType = "boolean", position = 97)
    private Boolean isAsc = true;

    @ApiModelProperty(name = "orderSql", value = "排序列，数据列", hidden = true)
    private String orderSql;
}
